﻿@using Masa.Blazor.Presets

<div class="text-center">
    <PMobileTimePicker @bind-Value="_time"
                       Min="new TimeOnly(9, 30, 0)"
                       Max="new TimeOnly(14, 59, 59)">
        <ActivatorContent>
            <MButton Color="primary" Class="text-capitalize" Text @attributes="@context.Attrs">
                @_time.ToString("HH:mm:ss")
            </MButton>
        </ActivatorContent>
    </PMobileTimePicker>
</div>

@code {

    private TimeOnly _time = new TimeOnly(10, 30, 0);

}
